package com.tianpengtech.admin.fairadvertisement;
import com.jfinal.aop.Before;
import com.jfinal.plugin.activerecord.Model;
import com.tianpengtech.admin.AbstractAdminController;
import com.tianpengtech.admin.InitInterceptor;
import com.tianpengtech.common.exception.ValidateException;
import com.tianpengtech.common.model.fairadvertisement.FairAdvertisement;

/**
* 路由配置地址：add("/admin/fairadvertisement", FairAdvertisementAdminController.class, "/admin/fairadvertisement");
* 数据库映射地址：arp.addMapping(FairAdvertisement.dao.tableName(),FairAdvertisement.class);
*/
@Before(InitInterceptor.class)
public class FairAdvertisementAdminController extends AbstractAdminController{

	@Override
	protected void config() {
		this.clazz=FairAdvertisement.class;
		this.service=new FairAdvertisementAdminServiceImpl();
	}

	@Override
	public void beforeAdd() {

	}

	@Override
	public void beforeAdd(Model< ? > model) throws ValidateException {

	}

	@Override
	public void beforeQueryById(Model<?> model, int id) {

	}

	@Override
	public void beforeUpdate(Model< ? > model) throws ValidateException {

	}

	@Override
	public void beforeDelete(Model< ? > model) {

	}

	@Override
	public void parsePageRecord(Object results) {
		
	}
}

	